package final_demo;

public class Demo01 {
    public static void main(String[] args) {
        //实例常量
        MyClass myClass = new MyClass();
        System.out.println(myClass);
    }
}
class MyClass{
   final int num=30;//常量必须初始化
    public MyClass(){

    }
}